package com.ozo.easy.pojo.dto;

import com.ozo.easy.common.model.BaseValidDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.*;
import lombok.Data;

import java.io.Serializable;

/**
 * 角色保存对象
 *
 * @author ozo
 * @version 1.0
 * @date 2025-02-14 16:53:43
 */
@Data
@Schema(description = "角色保存对象")
public class SysRoleSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "主键不能为空", groups = BaseValidDTO.Edit.class)
    @Schema(description = "id")
    private Long id;

    @NotBlank(message = "角色名称不能为空")
    @Schema(description = "角色名称")
    private String roleName;

    @NotBlank(message = "角色编码不能为空")
    @Schema(description = "角色编码")
    private String roleCode;

    @Schema(description = "备注")
    private String remark;

}
